﻿<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippet Format="1.0.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <Header>
    <Title>DevExpress MVC Button</Title>
    <Author>Žeks</Author>
    <Shortcut>dxbtn</Shortcut>
    <Description></Description>
    <SnippetTypes>
      <SnippetType>Expansion</SnippetType>
    </SnippetTypes>
  </Header>
  <Snippet>
    <Declarations>
      <Literal>
        <ID>name</ID>
        <Default>Name</Default>
      </Literal>
      <Literal>
        <ID>tekst</ID>
        <Default>Sačuvaj</Default>
      </Literal>
      <Literal>
        <ID>css</ID>
        <Default>btnSave</Default>
      </Literal>
      <Literal>
        <ID>click</ID>
        <Default>onClick</Default>
      </Literal>
    </Declarations>
    <Code Language="HTML">
      <![CDATA[
@Html.DevExpress().Button(s =>
{
    s.Name = "$name$";
    s.Text = "$tekst$";
    s.ControlStyle.CssClass = "$css$";
    s.ClientSideEvents.Click = "$click$";
}).GetHtml()
      ]]>
    </Code>
  </Snippet>
</CodeSnippet>